3.2.56 \(\int (a+a \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx\) [156]

Optimal. Leaf size=105 \[ \frac {2 a^{3/2} c \text {ArcTan}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f}+\frac {2 a^2 (3 c+4 d) \tan (e+f x)}{3 f \sqrt {a+a \sec (e+f x)}}+\frac {2 a d \sqrt {a+a \sec (e+f x)} \tan (e+f x)}{3 f} \]

[Out]

2*a^(3/2)*c*arctan(a^(1/2)*tan(f*x+e)/(a+a*sec(f*x+e))^(1/2))/f+2/3*a^2*(3*c+4*d)*tan(f*x+e)/f/(a+a*sec(f*x+e)
)^(1/2)+2/3*a*d*(a+a*sec(f*x+e))^(1/2)*tan(f*x+e)/f

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4002, 4000, 3859, 209, 3877} \begin {gather*} \frac {2 a^{3/2} c \text {ArcTan}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a \sec (e+f x)+a}}\right )}{f}+\frac {2 a^2 (3 c+4 d) \tan (e+f x)}{3 f \sqrt {a \sec (e+f x)+a}}+\frac {2 a d \tan (e+f x) \sqrt {a \sec (e+f x)+a}}{3 f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + a*Sec[e + f*x])^(3/2)*(c + d*Sec[e + f*x]),x]

[Out]

(2*a^(3/2)*c*ArcTan[(Sqrt[a]*Tan[e + f*x])/Sqrt[a + a*Sec[e + f*x]]])/f + (2*a^2*(3*c + 4*d)*Tan[e + f*x])/(3*
f*Sqrt[a + a*Sec[e + f*x]]) + (2*a*d*Sqrt[a + a*Sec[e + f*x]]*Tan[e + f*x])/(3*f)

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 3859

Int[Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2*(b/d), Subst[Int[1/(a + x^2), x], x, b*(C
ot[c + d*x]/Sqrt[a + b*Csc[c + d*x]])], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]

Rule 3877

Int[csc[(e_.) + (f_.)*(x_)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*b*(Cot[e + f*x]/(
f*Sqrt[a + b*Csc[e + f*x]])), x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0]

Rule 4000

Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Dist[c, In
t[Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Sqrt[a + b*Csc[e + f*x]]*Csc[e + f*x], x], x] /; FreeQ[{a, b,
 c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0]

Rule 4002

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Simp[(-b)
*d*Cot[e + f*x]*((a + b*Csc[e + f*x])^(m - 1)/(f*m)), x] + Dist[1/m, Int[(a + b*Csc[e + f*x])^(m - 1)*Simp[a*c
*m + (b*c*m + a*d*(2*m - 1))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] &&
GtQ[m, 1] && EqQ[a^2 - b^2, 0] && IntegerQ[2*m]

Rubi steps

\begin {align*} \int (a+a \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx &=\frac {2 a d \sqrt {a+a \sec (e+f x)} \tan (e+f x)}{3 f}+\frac {2}{3} \int \sqrt {a+a \sec (e+f x)} \left (\frac {3 a c}{2}+\frac {1}{2} a (3 c+4 d) \sec (e+f x)\right ) \, dx\\ &=\frac {2 a d \sqrt {a+a \sec (e+f x)} \tan (e+f x)}{3 f}+(a c) \int \sqrt {a+a \sec (e+f x)} \, dx+\frac {1}{3} (a (3 c+4 d)) \int \sec (e+f x) \sqrt {a+a \sec (e+f x)} \, dx\\ &=\frac {2 a^2 (3 c+4 d) \tan (e+f x)}{3 f \sqrt {a+a \sec (e+f x)}}+\frac {2 a d \sqrt {a+a \sec (e+f x)} \tan (e+f x)}{3 f}-\frac {\left (2 a^2 c\right ) \text {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f}\\ &=\frac {2 a^{3/2} c \tan ^{-1}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f}+\frac {2 a^2 (3 c+4 d) \tan (e+f x)}{3 f \sqrt {a+a \sec (e+f x)}}+\frac {2 a d \sqrt {a+a \sec (e+f x)} \tan (e+f x)}{3 f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.60, size = 102, normalized size = 0.97 \begin {gather*} \frac {a \sec \left (\frac {1}{2} (e+f x)\right ) \sec (e+f x) \sqrt {a (1+\sec (e+f x))} \left (3 \sqrt {2} c \text {ArcSin}\left (\sqrt {2} \sin \left (\frac {1}{2} (e+f x)\right )\right ) \cos ^{\frac {3}{2}}(e+f x)+2 (d+(3 c+5 d) \cos (e+f x)) \sin \left (\frac {1}{2} (e+f x)\right )\right )}{3 f} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Sec[e + f*x])^(3/2)*(c + d*Sec[e + f*x]),x]

[Out]

(a*Sec[(e + f*x)/2]*Sec[e + f*x]*Sqrt[a*(1 + Sec[e + f*x])]*(3*Sqrt[2]*c*ArcSin[Sqrt[2]*Sin[(e + f*x)/2]]*Cos[
e + f*x]^(3/2) + 2*(d + (3*c + 5*d)*Cos[e + f*x])*Sin[(e + f*x)/2]))/(3*f)

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(236\) vs. \(2(91)=182\).
time = 2.91, size = 237, normalized size = 2.26

method result size
default \(-\frac {\sqrt {\frac {a \left (\cos \left (f x +e \right )+1\right )}{\cos \left (f x +e \right )}}\, \left (-3 \cos \left (f x +e \right ) \sin \left (f x +e \right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right ) \sqrt {2}}{2 \cos \left (f x +e \right )}\right ) \sqrt {2}\, \left (-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}\right )^{\frac {3}{2}} c -3 \left (-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}\right )^{\frac {3}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right ) \sqrt {2}}{2 \cos \left (f x +e \right )}\right ) c \sin \left (f x +e \right )+12 \left (\cos ^{2}\left (f x +e \right )\right ) c +20 \left (\cos ^{2}\left (f x +e \right )\right ) d -12 c \cos \left (f x +e \right )-16 d \cos \left (f x +e \right )-4 d \right ) a}{6 f \sin \left (f x +e \right ) \cos \left (f x +e \right )}\) \(237\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x,method=_RETURNVERBOSE)

[Out]

-1/6/f*(a*(cos(f*x+e)+1)/cos(f*x+e))^(1/2)*(-3*cos(f*x+e)*sin(f*x+e)*arctanh(1/2*(-2*cos(f*x+e)/(cos(f*x+e)+1)
)^(1/2)*sin(f*x+e)/cos(f*x+e)*2^(1/2))*2^(1/2)*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(3/2)*c-3*(-2*cos(f*x+e)/(cos(f*
x+e)+1))^(3/2)*2^(1/2)*arctanh(1/2*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*sin(f*x+e)/cos(f*x+e)*2^(1/2))*c*sin(f
*x+e)+12*cos(f*x+e)^2*c+20*cos(f*x+e)^2*d-12*c*cos(f*x+e)-16*d*cos(f*x+e)-4*d)/sin(f*x+e)/cos(f*x+e)*a

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1076 vs. \(2 (97) = 194\).
time = 0.61, size = 1076, normalized size = 10.25 \begin {gather*} \frac {{\left ({\left (a \arctan \left ({\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} {\left (\cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) - \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right )\right )}, {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} {\left (\cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) + \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right )\right )} + 1\right ) - a \arctan \left ({\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} {\left (\cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) - \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right )\right )}, {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} {\left (\cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) + \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right )\right )} - 1\right ) - a \arctan \left ({\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ), {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + 1\right ) + a \arctan \left ({\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ), {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) - 1\right )\right )} {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} \sqrt {a} + 4 \, {\left (a \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) - {\left (a \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) - a\right )} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )\right )} \sqrt {a}\right )} c}{2 \, {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x, algorithm="maxima")

[Out]

1/2*((a*arctan2((cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*(cos(1/2*arctan2(sin(
2*f*x + 2*e), cos(2*f*x + 2*e)))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) - cos(1/2*arctan2(si
n(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e)))), (cos(2*f*x + 2*e
)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*(cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) +
 1))*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) + sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e)
 + 1))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e)))) + 1) - a*arctan2((cos(2*f*x + 2*e)^2 + sin(2*f*x
+ 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*(cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e)))*sin(1/2*arctan2
(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) - cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))*sin(1/2*a
rctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e)))), (cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) +
1)^(1/4)*(cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x
 + 2*e))) + sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f
*x + 2*e)))) - 1) - a*arctan2((cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sin(1/2
*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)), (cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*
e) + 1)^(1/4)*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) + 1) + a*arctan2((cos(2*f*x + 2*e)^2 +
sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)), (
cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(
2*f*x + 2*e) + 1)) - 1))*(cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sqrt(a) + 4*
(a*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e)
)) - (a*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) - a)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x
+ 2*e) + 1)))*sqrt(a))*c/((cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*f)

________________________________________________________________________________________

Fricas [A]
time = 1.99, size = 343, normalized size = 3.27 \begin {gather*} \left [\frac {3 \, {\left (a c \cos \left (f x + e\right )^{2} + a c \cos \left (f x + e\right )\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (f x + e\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right ) + 2 \, {\left (a d + {\left (3 \, a c + 5 \, a d\right )} \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{3 \, {\left (f \cos \left (f x + e\right )^{2} + f \cos \left (f x + e\right )\right )}}, -\frac {2 \, {\left (3 \, {\left (a c \cos \left (f x + e\right )^{2} + a c \cos \left (f x + e\right )\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt {a} \sin \left (f x + e\right )}\right ) - {\left (a d + {\left (3 \, a c + 5 \, a d\right )} \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )\right )}}{3 \, {\left (f \cos \left (f x + e\right )^{2} + f \cos \left (f x + e\right )\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x, algorithm="fricas")

[Out]

[1/3*(3*(a*c*cos(f*x + e)^2 + a*c*cos(f*x + e))*sqrt(-a)*log((2*a*cos(f*x + e)^2 - 2*sqrt(-a)*sqrt((a*cos(f*x
+ e) + a)/cos(f*x + e))*cos(f*x + e)*sin(f*x + e) + a*cos(f*x + e) - a)/(cos(f*x + e) + 1)) + 2*(a*d + (3*a*c
+ 5*a*d)*cos(f*x + e))*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*sin(f*x + e))/(f*cos(f*x + e)^2 + f*cos(f*x + e
)), -2/3*(3*(a*c*cos(f*x + e)^2 + a*c*cos(f*x + e))*sqrt(a)*arctan(sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos
(f*x + e)/(sqrt(a)*sin(f*x + e))) - (a*d + (3*a*c + 5*a*d)*cos(f*x + e))*sqrt((a*cos(f*x + e) + a)/cos(f*x + e
))*sin(f*x + e))/(f*cos(f*x + e)^2 + f*cos(f*x + e))]

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sec {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}} \left (c + d \sec {\left (e + f x \right )}\right )\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(f*x+e))**(3/2)*(c+d*sec(f*x+e)),x)

[Out]

Integral((a*(sec(e + f*x) + 1))**(3/2)*(c + d*sec(e + f*x)), x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 263 vs. \(2 (91) = 182\).
time = 1.32, size = 263, normalized size = 2.50 \begin {gather*} -\frac {\frac {3 \, \sqrt {-a} a^{2} c \log \left (\frac {{\left | 2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a}\right )}^{2} - 4 \, \sqrt {2} {\left | a \right |} - 6 \, a \right |}}{{\left | 2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a}\right )}^{2} + 4 \, \sqrt {2} {\left | a \right |} - 6 \, a \right |}}\right ) \mathrm {sgn}\left (\cos \left (f x + e\right )\right )}{{\left | a \right |}} + \frac {2 \, {\left (3 \, \sqrt {2} a^{3} c \mathrm {sgn}\left (\cos \left (f x + e\right )\right ) + 6 \, \sqrt {2} a^{3} d \mathrm {sgn}\left (\cos \left (f x + e\right )\right ) - {\left (3 \, \sqrt {2} a^{3} c \mathrm {sgn}\left (\cos \left (f x + e\right )\right ) + 4 \, \sqrt {2} a^{3} d \mathrm {sgn}\left (\cos \left (f x + e\right )\right )\right )} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2}\right )} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{{\left (a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - a\right )} \sqrt {-a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a}}}{3 \, f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x, algorithm="giac")

[Out]

-1/3*(3*sqrt(-a)*a^2*c*log(abs(2*(sqrt(-a)*tan(1/2*f*x + 1/2*e) - sqrt(-a*tan(1/2*f*x + 1/2*e)^2 + a))^2 - 4*s
qrt(2)*abs(a) - 6*a)/abs(2*(sqrt(-a)*tan(1/2*f*x + 1/2*e) - sqrt(-a*tan(1/2*f*x + 1/2*e)^2 + a))^2 + 4*sqrt(2)
*abs(a) - 6*a))*sgn(cos(f*x + e))/abs(a) + 2*(3*sqrt(2)*a^3*c*sgn(cos(f*x + e)) + 6*sqrt(2)*a^3*d*sgn(cos(f*x
+ e)) - (3*sqrt(2)*a^3*c*sgn(cos(f*x + e)) + 4*sqrt(2)*a^3*d*sgn(cos(f*x + e)))*tan(1/2*f*x + 1/2*e)^2)*tan(1/
2*f*x + 1/2*e)/((a*tan(1/2*f*x + 1/2*e)^2 - a)*sqrt(-a*tan(1/2*f*x + 1/2*e)^2 + a)))/f

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{3/2}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a/cos(e + f*x))^(3/2)*(c + d/cos(e + f*x)),x)

[Out]

int((a + a/cos(e + f*x))^(3/2)*(c + d/cos(e + f*x)), x)

________________________________________________________________________________________